package com.mes.cloud.base;

import com.mes.cloud.commons.Constants;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;

public interface WebConstants {

    MediaType X_JAVASCRIPT_TYPE = new MediaType("application", "x-javascript", Constants.UTF8);

    String X_JAVASCRIPT_TYPE_VALUE = "application/x-javascript;charset=UTF-8";

    String NO_CACHE = "no-cache";

    HttpHeaders NO_CACHE_HEADERS = new HttpHeaders();

    class Initializer{
        static {
            NO_CACHE_HEADERS.add(HttpHeaders.PRAGMA, NO_CACHE);
            // cache_control
            NO_CACHE_HEADERS.add(HttpHeaders.CACHE_CONTROL, NO_CACHE);
        }
    }
}
